home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / awksrc.zip / GAWK-D~1.14 / GAWK.TOC < prev    next >
Text File  |  1993-10-03  |  9KB  |  165 lines

  1. \unnumbchapentry {Preface}{1}
  2. \unnumbsecentry{History of \code {awk} and \code {gawk}}{1}
  3. \unnumbchapentry {GNU GENERAL PUBLIC LICENSE}{3}
  4. \unnumbsecentry{Preamble}{3}
  5. \unnumbsecentry{TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION}{4}
  6. \unnumbsecentry{How to Apply These Terms to Your New Programs}{9}
  7. \chapentry {Using this Manual}{1}{11}
  8. \secentry {Data Files for the Examples}{1}{1}{11}
  9. \chapentry {Getting Started with \code {awk}}{2}{13}
  10. \secentry {A Very Simple Example}{2}{1}{13}
  11. \secentry {An Example with Two Rules}{2}{2}{14}
  12. \secentry {A More Complex Example}{2}{3}{15}
  13. \secentry {How to Run \code {awk} Programs}{2}{4}{16}
  14. \subsecentry {One-shot Throw-away \code {awk} Programs}{2}{4}{1}{17}
  15. \subsecentry {Running \code {awk} without Input Files}{2}{4}{2}{17}
  16. \subsecentry {Running Long Programs}{2}{4}{3}{18}
  17. \subsecentry {Executable \code {awk} Programs}{2}{4}{4}{19}
  18. \secentry {Comments in \code {awk} Programs}{2}{5}{20}
  19. \secentry {\code {awk} Statements versus Lines}{2}{6}{21}
  20. \secentry {When to Use \code {awk}}{2}{7}{22}
  21. \chapentry {Reading Input Files}{3}{25}
  22. \secentry {How Input is Split into Records}{3}{1}{25}
  23. \secentry {Examining Fields}{3}{2}{26}
  24. \secentry {Non-constant Field Numbers}{3}{3}{28}
  25. \secentry {Changing the Contents of a Field}{3}{4}{29}
  26. \secentry {Specifying how Fields are Separated}{3}{5}{30}
  27. \secentry {Reading Fixed-width Data}{3}{6}{36}
  28. \secentry {Multiple-Line Records}{3}{7}{37}
  29. \secentry {Explicit Input with \code {getline}}{3}{8}{38}
  30. \secentry {Closing Input Files and Pipes}{3}{9}{43}
  31. \chapentry {Printing Output}{4}{45}
  32. \secentry {The \code {print} Statement}{4}{1}{45}
  33. \secentry {Examples of \code {print} Statements}{4}{2}{46}
  34. \secentry {Output Separators}{4}{3}{47}
  35. \secentry {Controlling Numeric Output with \code {print}}{4}{4}{48}
  36. \secentry {Using \code {printf} Statements for Fancier Printing}{4}{5}{49}
  37. \subsecentry {Introduction to the \code {printf} Statement}{4}{5}{1}{49}
  38. \subsecentry {Format-Control Letters}{4}{5}{2}{49}
  39. \subsecentry {Modifiers for \code {printf} Formats}{4}{5}{3}{50}
  40. \subsecentry {Examples of Using \code {printf}}{4}{5}{4}{52}
  41. \secentry {Redirecting Output of \code {print} and \code {printf}}{4}{6}{53}
  42. \subsecentry {Redirecting Output to Files and Pipes}{4}{6}{1}{53}
  43. \subsecentry {Closing Output Files and Pipes}{4}{6}{2}{55}
  44. \secentry {Standard I/O Streams}{4}{7}{56}
  45. \chapentry {Useful ``One-liners''}{5}{59}
  46. \chapentry {Patterns}{6}{61}
  47. \secentry {Kinds of Patterns}{6}{1}{61}
  48. \secentry {Regular Expressions as Patterns}{6}{2}{61}
  49. \subsecentry {How to Use Regular Expressions}{6}{2}{1}{62}
  50. \subsecentry {Regular Expression Operators}{6}{2}{2}{63}
  51. \subsecentry {Case-sensitivity in Matching}{6}{2}{3}{65}
  52. \secentry {Comparison Expressions as Patterns}{6}{3}{66}
  53. \secentry {Boolean Operators and Patterns}{6}{4}{67}
  54. \secentry {Expressions as Patterns}{6}{5}{68}
  55. \secentry {Specifying Record Ranges with Patterns}{6}{6}{69}
  56. \secentry {\code {BEGIN} and \code {END} Special Patterns}{6}{7}{69}
  57. \secentry {The Empty Pattern}{6}{8}{70}
  58. \chapentry {Overview of Actions}{7}{73}
  59. \chapentry {Expressions as Action Statements}{8}{75}
  60. \secentry {Constant Expressions}{8}{1}{75}
  61. \secentry {Variables}{8}{2}{78}
  62. \subsecentry {Assigning Variables on the Command Line}{8}{2}{1}{78}
  63. \secentry {Arithmetic Operators}{8}{3}{79}
  64. \secentry {String Concatenation}{8}{4}{80}
  65. \secentry {Comparison Expressions}{8}{5}{81}
  66. \secentry {Boolean Expressions}{8}{6}{83}
  67. \secentry {Assignment Expressions}{8}{7}{84}
  68. \secentry {Increment Operators}{8}{8}{87}
  69. \secentry {Conversion of Strings and Numbers}{8}{9}{88}
  70. \secentry {Numeric and String Values}{8}{10}{89}
  71. \secentry {Conditional Expressions}{8}{11}{91}
  72. \secentry {Function Calls}{8}{12}{91}
  73. \secentry {Operator Precedence (How Operators Nest)}{8}{13}{93}
  74. \chapentry {Control Statements in Actions}{9}{95}
  75. \secentry {The \code {if} Statement}{9}{1}{95}
  76. \secentry {The \code {while} Statement}{9}{2}{96}
  77. \secentry {The \code {do}-\code {while} Statement}{9}{3}{97}
  78. \secentry {The \code {for} Statement}{9}{4}{98}
  79. \secentry {The \code {break} Statement}{9}{5}{99}
  80. \secentry {The \code {continue} Statement}{9}{6}{100}
  81. \secentry {The \code {next} Statement}{9}{7}{102}
  82. \secentry {The \code {next file} Statement}{9}{8}{103}
  83. \secentry {The \code {exit} Statement}{9}{9}{104}
  84. \chapentry {Arrays in \code {awk}}{10}{107}
  85. \secentry {Introduction to Arrays}{10}{1}{107}
  86. \secentry {Referring to an Array Element}{10}{2}{109}
  87. \secentry {Assigning Array Elements}{10}{3}{110}
  88. \secentry {Basic Example of an Array}{10}{4}{110}
  89. \secentry {Scanning all Elements of an Array}{10}{5}{111}
  90. \secentry {The \code {delete} Statement}{10}{6}{112}
  91. \secentry {Using Numbers to Subscript Arrays}{10}{7}{113}
  92. \secentry {Multi-dimensional Arrays}{10}{8}{114}
  93. \secentry {Scanning Multi-dimensional Arrays}{10}{9}{116}
  94. \chapentry {Built-in Functions}{11}{117}
  95. \secentry {Calling Built-in Functions}{11}{1}{117}
  96. \secentry {Numeric Built-in Functions}{11}{2}{117}
  97. \secentry {Built-in Functions for String Manipulation}{11}{3}{119}
  98. \secentry {Built-in Functions for Input/Output}{11}{4}{122}
  99. \secentry {Functions for Dealing with Time Stamps}{11}{5}{124}
  100. \chapentry {User-defined Functions}{12}{129}
  101. \secentry {Syntax of Function Definitions}{12}{1}{129}
  102. \secentry {Function Definition Example}{12}{2}{131}
  103. \secentry {Calling User-defined Functions}{12}{3}{132}
  104. \secentry {The \code {return} Statement}{12}{4}{133}
  105. \chapentry {Built-in Variables}{13}{137}
  106. \secentry {Built-in Variables that Control \code {awk}}{13}{1}{137}
  107. \secentry {Built-in Variables that Convey Information}{13}{2}{138}
  108. \chapentry {Invoking \code {awk}}{14}{141}
  109. \secentry {Command Line Options}{14}{1}{141}
  110. \secentry {Other Command Line Arguments}{14}{2}{143}
  111. \secentry {The \code {AWKPATH} Environment Variable}{14}{3}{144}
  112. \secentry {Obsolete Options and/or Features}{14}{4}{145}
  113. \secentry {Undocumented Options and Features}{14}{5}{145}
  114. \chapentry {The Evolution of the \code {awk} Language}{15}{147}
  115. \secentry {Major Changes between V7 and S5R3.1}{15}{1}{147}
  116. \secentry {Changes between S5R3.1 and S5R4}{15}{2}{148}
  117. \secentry {Changes between S5R4 and POSIX \code {awk}}{15}{3}{148}
  118. \secentry {Extensions in \code {gawk} not in POSIX \code {awk}}{15}{4}{149}
  119. \chapentry {Installing \code {gawk}}{16}{151}
  120. \secentry {The \code {gawk} Distribution}{16}{1}{151}
  121. \subsecentry {Getting the \code {gawk} Distribution}{16}{1}{1}{151}
  122. \subsecentry {Contents of the \code {gawk} Distribution}{16}{1}{2}{152}
  123. \secentry {Compiling and Installing \code {gawk} on Unix}{16}{2}{153}
  124. \subsecentry {Compiling \code {gawk} for a Supported Unix Version}{16}{2}{1}{153}
  125. \subsecentry {The Configuration Process}{16}{2}{2}{154}
  126. \subsecentry {Configuring \code {gawk} for a New System}{16}{2}{3}{155}
  127. \secentry {Compiling, Installing, and Running \code {gawk} on VMS}{16}{3}{156}
  128. \subsecentry {Compiling \code {gawk} under VMS}{16}{3}{1}{156}
  129. \subsecentry {Installing \code {gawk} on VMS}{16}{3}{2}{157}
  130. \subsecentry {Running \code {gawk} on VMS}{16}{3}{3}{158}
  131. \subsecentry {Building and using \code {gawk} under VMS POSIX}{16}{3}{4}{158}
  132. \secentry {Installing \code {gawk} on MS-DOS}{16}{4}{159}
  133. \secentry {Installing \code {gawk} on the Atari ST}{16}{5}{159}
  134. \chapentry {\code {gawk} Summary}{Appendix \char65}{163}
  135. \secentry {Command Line Options Summary}{\char65}{1}{163}
  136. \secentry {Language Summary}{\char65}{2}{164}
  137. \secentry {Variables and Fields}{\char65}{3}{165}
  138. \subsecentry {Fields}{\char65}{3}{1}{165}
  139. \subsecentry {Built-in Variables}{\char65}{3}{2}{165}
  140. \subsecentry {Arrays}{\char65}{3}{3}{167}
  141. \subsecentry {Data Types}{\char65}{3}{4}{167}
  142. \secentry {Patterns and Actions}{\char65}{4}{168}
  143. \subsecentry {Patterns}{\char65}{4}{1}{169}
  144. \subsecentry {Regular Expressions}{\char65}{4}{2}{170}
  145. \subsecentry {Actions}{\char65}{4}{3}{171}
  146. \subsubsecentry{Operators}{\char65} {4}{3}{1}{171}
  147. \subsubsecentry{Control Statements}{\char65} {4}{3}{2}{172}
  148. \subsubsecentry{I/O Statements}{\char65} {4}{3}{3}{172}
  149. \subsubsecentry{\code {printf} Summary}{\char65} {4}{3}{4}{173}
  150. \subsubsecentry{Special File Names}{\char65} {4}{3}{5}{174}
  151. \subsubsecentry{Numeric Functions}{\char65} {4}{3}{6}{175}
  152. \subsubsecentry{String Functions}{\char65} {4}{3}{7}{175}
  153. \subsubsecentry{Built-in time functions}{\char65} {4}{3}{8}{176}
  154. \subsubsecentry{String Constants}{\char65} {4}{3}{9}{177}
  155. \secentry {Functions}{\char65}{5}{177}
  156. \secentry {Historical Features}{\char65}{6}{178}
  157. \chapentry {Sample Program}{Appendix \char66}{179}
  158. \chapentry {Reporting Problems and Bugs}{Appendix \char67}{183}
  159. \chapentry {Implementation Notes}{Appendix \char68}{185}
  160. \secentry {Downward Compatibility and Debugging}{\char68}{1}{185}
  161. \secentry {Probable Future Extensions}{\char68}{2}{185}
  162. \secentry {Suggestions for Improvements}{\char68}{3}{186}
  163. \chapentry {Glossary}{Appendix \char69}{189}
  164. \unnumbchapentry {Index}{195}
  165.